package com.boyunv.mediator.example01;
/*
 *@description
 *  具体同事类
 *@author boyunv
 *@create 2023/9/10 9:35
 *@version 1.0
 */

public class ConcreteColleagueB extends  Colleague{
    public ConcreteColleagueB(Mediator mediator) {
        super(mediator);
    }
    
    @Override
    public void exec(String key) {
        System.out.println(
                    " 在B同事中进行中介者执行"
        );
        getMediator().apply(key);
    }
}
